{extend name='../../admin/view/table'}

{block name="button"}


{/block}

{block name="content"}
<div class="think-box-shadow">

    <fieldset>


        <div class="layui-form-item layui-inline">
            <!-- {if auth('add')} -->
<!--            <button class="layui-btn" data-title="添加问题分类" data-modal="{:url('add')}" type="button">-->
<!--                <i class="layui-icon">&#xe61f;</i> 添 加-->
<!--            </button>-->
            <!-- {/if} -->
        </div>

        </form>
    </fieldset>

    <table id="TagsData" data-url="{:sysuri()}" data-target-search="#TagsDataSearch"></table>
</div>
{/block}

{block name='script'}
<script>
    $(function () {
        $('#TagsData').layTable({
            even: true, height: 'full',
            sort: {field: 'id desc,id', type: 'desc'},
            cols: [[
                {field: 'id', title: 'ID', width: 80, align: 'center', sort: true},
                {field: 'goods_lucky_draw_id', title: '期号', minWidth: 150, align: 'center',sort: true},
                {field: 'user_phone', title: '用户电话', minWidth: 150, align: 'center'},
                {field: 'lucky_number', title: '幸运号码', minWidth: 150, align: 'center'},
                {field: 'win_time', title: '开奖时间', minWidth: 170, align: 'center',sort: true},
                {field: 'create_time', title: '创建时间', minWidth: 170, align: 'center',sort: true},
                // {toolbar: '#ToolbarTagsData', title: '操作面板', minWidth: 100, align: 'center', fixed: 'right'},
            ]]
        });


    });
</script>




<!-- 操控面板的模板 -->
<script type="text/html" id="ToolbarTagsData">

    <!--{if auth("edit")}-->
    <a class="layui-btn layui-btn-sm" data-title="编辑标签数据" data-modal='{:url("edit")}?id={{d.id}}'>编 辑</a>
    <!--{/if}-->

    <!--{if auth("remove")}-->
    <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除此问题吗？" data-action="{:url('remove')}" data-value="id#{{d.id}}">删 除</a>
    <!--{/if}-->
</script>
{/block}